package cn.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.domain.FilesEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author CRL
 * @Date 2021/4/18 23:39
 */
public interface FilesService extends IService<FilesEntity> {

    /**
     * 上传文件接口
     *
     * @param request request
     * @return return
     */
    FilesEntity upload(HttpServletRequest request);

    void download(HttpServletResponse response, String filePath, String fileType, String fileName) throws IOException;


}
